package com.lw.yygh.hosp.repository;

import com.lw.yygh.model.hosp.Department;
import com.lw.yygh.model.hosp.Hospital;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospRepository extends MongoRepository<Hospital,String> {
    Hospital findByHoscode(String hoscode);

    //根据医院名称进行模糊查询 返回list集合 有多个
    List<Hospital> findByHosnameLike(String hosname);
}
